package com.yonyou.gmmc.service.pointactivity.dao;

import java.util.Map;

import com.yonyou.gmmc.common.annotation.OracleDb;
import com.yonyou.gmmc.service.pointactivity.model.TmPotentialUser;

import feign.Param;
import tk.mybatis.mapper.common.Mapper;

@OracleDb
public interface TmPotentialUserMapper extends Mapper<TmPotentialUser> {

	/**
	 * 查询潜在客户根据openId
	 * 
	 * @param openId
	 * @return
	 */
	public Map<String, Object> queryPotentialUserByOpenId(@Param("openId") String openId);

	/**
	 * 查询车主信息
	 * @param phone
	 * @return
	 */
	public Map<String, Object> queryCarOwner(@Param("phone") String phone);

	/**
	 * 新增会员信息
	 * @param map
	 * @return
	 */
	public Long insertCarOwner(Map<String, Object> map);

	/**
	 * 新增会员和潜客的关系
	 * @param map
	 */
	public void insertUserOwner(Map<String, Object> map);

}
